package com.xinsoft.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsoft.entity.dto.SysCountConfigParam;
import com.xinsoft.entity.po.SysCountConfig;
import com.xinsoft.service.SysCountConfigService;
import com.xinsoft.mapper.SysCountConfigMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author hsm
* @description 针对表【sys_count_config(工作台设置)】的数据库操作Service实现
* @createDate 2023-11-24 14:05:29
*/
@Service
public class SysCountConfigServiceImpl extends ServiceImpl<SysCountConfigMapper, SysCountConfig>
    implements SysCountConfigService{

    @Resource
    SysCountConfigMapper configMapper;

    @Override
    public IPage<SysCountConfig> findPageListByParam(SysCountConfigParam param) {
        Page<SysCountConfig> page = new Page<SysCountConfig>(param.getCurrentPage(), param.getPageSize());
        LambdaQueryWrapper<SysCountConfig> queryWrapper = new LambdaQueryWrapper<>();
        //查询条件
        IPage<SysCountConfig> resultPage = configMapper.selectPage(page, queryWrapper);
        //返回值
        return resultPage;
    }
}




